// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue';
import App from './App';
import VueRouter from 'vue-router';
import VueResource from 'vue-resource';
import index from './views/index';
import financeIndex from './views/financeIndex';
import company from './views/company';
import recruit from './views/recruit';
import contact from './views/contact';
// 开启debug模式
Vue.config.debug = true;

Vue.use(VueRouter);
Vue.use(VueResource);
const routes = [
    {
        path: '/',
        component: index
    },
    {
        path: '/financeIndex',
        component: financeIndex
    },
    {
        path: '/company',
        component: company
    },
    {
        path: '/recruit',
        component: recruit
    },
    {
        path: '/contact',
        component: contact
    }
];
const router = new VueRouter({
    linkActiveClass: 'hightlight',
    routes
});
const app = new Vue({
    router: router,
    render: h => h(App)
});
app.$mount('#app');
